<template>
  <div class="loginBox">
    <div class="title">
      {{ $t('login.login1') }}
    </div>
    
    <!-- <div @click="login" class="btn" style="background-color: rgb(21, 22, 24);">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-github">
        <path
          d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5">
        </path>
      </svg>
      <span>{{ $t('login.login3') }}</span>
    </div> -->
    <div @click="login" class="btn" style="background-color: #4285f4">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-brand-google">
        <path d="M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z"></path>
      </svg>
      <span>{{ $t('login.login4') }}</span>
    </div>
    <div @click="login" class="btn" style="background-color: rgb(255, 87, 0)">
      <svg t="1709340044789" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7372" width="20" height="20"><path d="M933.8 195.213c0-58.296-47.259-105.554-105.554-105.554h-633.12c-58.296 0-105.554 47.258-105.554 105.554v633.12c0 58.295 47.258 105.554 105.554 105.554h633.12c58.295 0 105.554-47.259 105.554-105.554v-633.12zM776.21 300.46H669.787v105.4H776.21v105.401H669.787v317.225h-105.4V511.261H458.985v-105.4h105.4V267.9c0-35.433 39.029-72.84 78.785-72.84H776.21v105.4z" fill="#ffffff" p-id="7373"></path></svg>
      <span>{{ $t('login.login13') }}</span>
    </div>
    <div class="btn" @click="login">
      <svg t="1709340013217" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6281" width="20" height="20"><path d="M778.4 96h141.2L611.2 448.4 974 928H690L467.4 637.2 213 928H71.6l329.8-377L53.6 96h291.2l201 265.8L778.4 96z m-49.6 747.6H807L302.2 176h-84l510.6 667.6z" p-id="6282" fill="#ffffff"></path></svg>
      <span>{{ $t('login.login14') }}</span>
    </div>
    <div class="mantine-vpb0dt">
      <div class="mantine-kwp63y">
        {{ $t('login.login6') }}
      </div>
    </div>
    <div class="inputs">
      <div class="label">
        {{ $t('login.login7') }} <span>*</span>
      </div>
      <div class="input">
        <input type="text" placeholder="coolperson@email.com">
      </div>
    </div>

    <div @click="login" class="btn" style="background-color: rgb(102, 102, 102)">
      <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
        stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="tabler-icon tabler-icon-mail">
        <path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path>
        <path d="M3 7l9 6l9 -6"></path>
      </svg>
      <span>{{ $t('login.login7') }}</span>
    </div>

    <!-- 验证码登录 -->
    <div class="mantine-vpb0dt">
      <div class="mantine-kwp63y">
        {{ $t('login.login6') }}
      </div>
    </div>
    <div class="inputs">
      <div class="label">
        {{ $t('login.login8') }}<span>*</span>
      </div>
      <div class="input">
        <input type="text" :placeholder="$t('login.login9')">
      </div>
      <div class="input" style="margin-top: 15px;display: flex;align-items: center;">
        <input type="text" :placeholder="$t('login.login10')">
        <span class="sendBtn">{{ $t('login.login12') }}</span>
      </div>
    </div>

    <div @click="login" class="btn" style="background-color: rgb(102, 102, 102)">

      <svg t="1709277101666" class="icon" width="20" height="20" viewBox="0 0 1024 1024" version="1.1"
        xmlns="http://www.w3.org/2000/svg" p-id="4312">
        <path
          d="M511 866.7c-31.7 0-57.3-25.1-57.3-56s25.7-56 57.3-56 57.3 25.1 57.3 56-25.6 56-57.3 56zM211 138.9c0-41.3 33.4-74.9 74.7-74.9h452.6c41.3 0 74.7 33.5 74.7 74.9v746.3c0 41.3-33.4 74.9-74.7 74.9H285.7c-41.3 0-74.7-33.5-74.7-74.9V138.9z m546 587.8H267v158.5c0 10.4 8.4 18.9 18.7 18.9h452.6c10.3 0 18.7-8.4 18.7-18.9V726.7z m0-56V138.9c0-10.4-8.4-18.9-18.7-18.9H285.7c-10.3 0-18.7 8.4-18.7 18.9v531.8h490z"
          fill="#ffffff" p-id="4313"></path>
      </svg>
      <span>{{ $t('login.login11') }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "login",
  data() {
    return {

    };
  },
  mounted() { },
  methods: {
    login() {
      localStorage.setItem('token', '123')
      this.$router.push('/')

      // this.$emit('loginSuccess')
    }
  },
};
</script>

<style lang="scss" scoped>
.loginBox {
  outline: 0px;
  -webkit-tap-highlight-color: transparent;
  display: block;
  text-decoration: none;
  color: rgb(193, 194, 197);
  background-color: rgb(26, 27, 30);
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid rgb(55, 58, 64);
  padding: 24px;
  margin: 0 auto;
  width: 508px;

  .title {
    font-size: 18px;
    line-height: 1.55;
    text-decoration: none;
    font-weight: 500;
  }

  .btn {
    width: 100%;
    height: 34px;
    background-color: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 17px;
    color: #fff;
    cursor: pointer;

    span {
      margin-left: 5px;
    }
  }
}

.mantine-vpb0dt {
  border-right: 0px;
  border-bottom: 0px;
  border-left: 0px;
  border-image: initial;
  margin: 0px;
  border-top: 0px !important;
}

.mantine-kwp63y {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.mantine-kwp63y::before {
  content: "";
  flex: 1 1 0%;
  height: 1px;
  border-top: 1px solid rgb(55, 58, 64);
  margin-right: 10px;
}

.mantine-kwp63y::after {
  content: "";
  flex: 1 1 0%;
  border-top: 1px solid rgb(55, 58, 64);
  margin-left: 10px;
}

.inputs {
  .label {
    font-size: 15px;
    margin-bottom: 5px;

    span {
      color: red;
    }
  }

  input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    height: 36px;
    -webkit-tap-highlight-color: transparent;
    line-height: 34px;
    appearance: none;
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
    color: rgb(193, 194, 197);
    display: block;
    text-align: left;
    min-height: 36px;
    padding-left: 12px;
    padding-right: 36px;
    border-radius: 4px;
    border: 1px solid rgb(55, 58, 64);
    background-color: rgb(37, 38, 43);
    transition: border-color 100ms ease 0s;
  }
}

.sendBtn {
  margin-left: 20px;
  width: 100px;
  height: 36px;
  background-color: #4285f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

@media screen and (max-width:768px) {
  .loginBox {
    width: 91%;
    margin: 0 auto;
  }
}</style>
